#!/bin/bash

cp out/host/config.ini out/host/config.ini.old

echo "rpcserver=$1" > out/host/config.ini
echo "defaultbroker=$1" >> out/host/config.ini
echo "puertoEntrada=20002" >> out/host/config.ini
echo "puertoSalida=20003" >> out/host/config.ini
echo "puertoForward=20004" >> out/host/config.ini
echo "brokerId=1" >> out/host/config.ini

cp config.ini config.ini.old

echo "server_vend=$1" >  config.ini
echo "puerto_salida_vend=50002" >>  config.ini
echo "puerto_entrada_vend=50001" >>  config.ini
echo "routing_server=$1" >>  config.ini
echo "agent_address_server=$1" >>  config.ini

